<%@ page import="sige.Sangria" %>
<!doctype html>
<html>
    <head>
        <meta name="layout" content="main">
        <g:set var="entityName" value="${message(code: 'sangria.label', default: 'Sangria')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <center>
          <h1><g:message code="default.show.label" args="[entityName]" /></h1>
        </center>
        <ul class="breadcrumb">
            <li>
                <a href="${createLink(uri: '/')}">
                  <i class="icon-home"></i>
                  <g:message code="default.home.label"/>
                </a>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link action="list">
                    <i class="icon-list"></i>
                    <g:message code="default.list.label" args="[entityName]" />
                </g:link>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link class="create" action="create">
                    <i class="icon-file"></i>
                    <g:message code="default.new.label" args="[entityName]" />
                </g:link>
            </li>
        </ul>
        <div id="show-sangria" class="content scaffold-show" role="main">
            
            <g:if test="${flash.message}">
              <div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                ${flash.message}
              </div>
            </g:if>
            <div class="span8 offset3">
                <div class="span8 well">   
                <ol>
                    <g:if test="${sangriaInstance?.descricao}">
				    <li class="fieldcontain">
					    <span id="descricao-label" class="property-label"><g:message code="sangria.descricao.label" default="descricao" /></span>
					
						    <span class="property-value" aria-labelledby="descricao-label"><g:fieldValue bean="${sangriaInstance}" field="descricao"/></span>
					
				    </li>
				    </g:if>
			
				    <g:if test="${sangriaInstance?.dataDeVencimento}">
				    <li class="fieldcontain">
					    <span id="dataDeVencimento-label" class="property-label"><g:message code="sangria.dataDeVencimento.label" default="Data De Vencimento" /></span>
					
						    <span class="property-value" aria-labelledby="dataDeVencimento-label"><g:formatDate date="${sangriaInstance?.dataDeVencimento}" /></span>
					
				    </li>
				    </g:if>
			
				    <g:if test="${sangriaInstance?.valorBase}">
				    <li class="fieldcontain">
					    <span id="valorBase-label" class="property-label"><g:message code="sangria.valorBase.label" default="Valor Base" /></span>
					
						    <span class="property-value" aria-labelledby="valorBase-label"><g:fieldValue bean="${sangriaInstance}" field="valorBase"/></span>
					
				    </li>
				    </g:if>
                </ol>
                </div>
                <g:form>
                    <fieldset class="form-actions span8">
                        <g:hiddenField name="id" value="${sangriaInstance?.id}" />
                        <g:link class="btn btn-warning" action="edit" id="${sangriaInstance?.id}">
                            <i class="icon-edit icon-white"></i>
                            <g:message code="default.button.edit.label" default="Edit" />
                        </g:link>
                        <a data-toggle="modal" href="#myModal" class="btn btn-danger">
                            <i class="icon-trash icon-white"></i>
                            <g:message code="default.button.delete.label" default="Delete" /> 
                        </a>
                    </fieldset>
                    <!--------MODAL----------->
                    <div class="modal hide" id="myModal">
                        <div class="modal-header">
                            <a class="close" data-dismiss="modal">×</a>
                            <h3><g:message code="default.button.delete.atention.message" default="Atenção!" /></h3>
                        </div>
                        <div class="modal-body">
                            <p><g:message code="default.button.delete.confirm.message" default="Are you sure?" /> </p>
                        </div>
                        <div class="modal-footer">
                            <a class="btn" data-dismiss="modal">
                                <g:message code="default.cancel.label" default="Cancelar" />
                            </a>
                            <g:actionSubmit class="btn btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" />
                        </div>
                    </div>
                </g:form>
            </div><!--/span8-->
        </div><!--/show-sangria-->
    </body>
</html>
